package cate.common.table.activity.dailylogin.item;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "每日登陆活动-奖励配置 Row")
public class DailyLoginActivityItemRow extends ERow {
    @NoteField(value = "活动ID")
    public int actId;
    @NoteField(value = "活动配置ID")
    public int configTid;
    @NoteField(value = "分类")
    public int level;
    @NoteField(value = "天数")
    public int day;
    @NoteField(value = "领取类型")
    public int getType;
    @NoteField(value = "奖励")
    public String rewardStr;
    @NoteField(value = "充值项ID")
    public int payId;
    @NoteField(value = "跑马灯公告")
    public int lampId;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        id = xrw.getInteger("ID");
        actId = xrw.getInteger("活动ID", 0);
        configTid = xrw.getInteger("活动配置ID", 0);
        level = xrw.getInteger("分类", 0);
        day = xrw.getInteger("天数");
        getType = xrw.getInteger("领取类型", DailyLoginActivityItemSheet.DAILY_LOGIN_ACT_GET_TYPE_FREE);
        rewardStr = xrw.getString("奖励");
        payId = xrw.getInteger("充值项ID", 0);
        lampId = xrw.getInteger("跑马灯公告", 0);
    }
}
